package com.kong.mapper;

import com.kong.entity.dto.QueryAttendanceRecordsDto;
import com.kong.entity.pojo.AttendanceRecords;
import com.kong.entity.vo.AitVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 加油
 *
 * @author konglingfeng
 * @date 2025/11/1
 * @desc
 */
@Mapper
public interface AitMapper {

    List<AitVo> selectAttendanceRecordsList(QueryAttendanceRecordsDto queryAttendanceRecordsDto);

    boolean selectAttendanceRecordsByUserIdAndDate(@Param("userId") Long userId, @Param("date") Date date);

    void insertAttendanceRecords(AttendanceRecords attendanceRecords);

    void insertAttendanceAfternoonPunch(AttendanceRecords attendanceRecords);

    void updateAttendanceRecords(AttendanceRecords attendanceRecords);
    /**
     * 查询本月考勤统计信息
     *
     * @param userId 用户ID
     * @return 考勤统计数据
     */
    Map<String, Object> getAttendanceStatisticsByMonth(@Param("userId") Long userId);
}
